package cn.longge.service.impl;

import cn.longge.entity.Statute;
import cn.longge.service.IStatuteService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class StatuteServiceImpl extends BaseServiceImpl<Statute> implements IStatuteService {

    @Override
    public PageInfo selectByPage(int page, int pageSize,Integer type) {
        PageHelper.startPage(page,pageSize);
        Statute statute = new Statute();
        statute.setType(type);
        statute.setDelFlag("0");
        List<Statute> select = mapper.select(statute);
        return new PageInfo(select);
    }
}
